/* ===========================================================================
 * A modern CSS theme for Kanboard.
 * ============================================================================
 * Copyright © Stack Strategy Inc. All Rights Reserved.
 * Website: https://viggo.coding.me/blog/
 * ----------------------------------------------------------------------------
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 * ============================================================================
 * Author: Viggo <leanclose@gmail.com>
 * Date: 2019-07-10
 ============================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-size: 1rem;
    color: #3b4351;
    text-rendering: optimizeLegibility;
}
body,
button,
input,
select,
textarea {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-weight: 500;
    line-height: 1.2;
}
h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.6rem;
}
h3 {
    font-size: 1.4rem;
}
h4 {
    font-size: 1.2rem;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 0.8rem;
}
a .fa {
    color: #5755d9;
}

/* ===========================================================================
    header
   =========================================================================== */
header {
    padding: 0.625rem 1rem;
    margin-bottom: 1rem;
    background-color: #5755d9;
}
header h1 {
    align-items: center;
    display: flex;
    flex: 1 0 0;
}
header h1 .logo {
    margin-right: 1rem;
}
header h1 .title {
    font-size: 0.875rem;
    color: #fff;
}
header a .fa {
    color: #fff;
}
header h1 .tooltip {
    opacity: 0.5;
    color: #fff;
    font-size: 1rem;
    margin-left: 0.25rem;
}
header h1 .tooltip .fa-info-circle {
    color: #fff;
}
#tooltip-container {
    border-radius: 2px;
    box-shadow: 0 1px 0.2rem rgba(48, 55, 66, 0.3);
    border: none;
}
#tooltip-container strong {
    margin-left: 0.5rem;
}
summary {
    outline: 0;
}

/* ===========================================================================
    select dropdown
   =========================================================================== */
.select-dropdown-input-container {
    border: 1px solid #bcc3ce;
    border-radius: 2px;
}
.sidebar .select-dropdown-input-container {
    width: 100%;
}
.select-dropdown-input-container input[type='text'].select-dropdown-input {
    border: none;
    height: 24px;
    width: 270px;
}
.select-dropdown-input-container input[type='text'].select-dropdown-input:focus {
    box-shadow: none;
}
.sidebar .select-dropdown-input-container input[type='text'].select-dropdown-input {
    height: 34px;
}
.sidebar .select-dropdown-input-container .select-dropdown-chevron {
    margin-top: 7px;
}

#select-dropdown-menu {
    overflow: auto;
    border-radius: 2px;
}
.select-dropdown-menu-item.active {
    border: 1px solid #bcc3ce;
    background-color: #5755d9;
}
/* ===========================================================================
    dropdown submenu open 
   =========================================================================== */
ul.dropdown-submenu-open {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 0.2rem rgba(48, 55, 66, 0.3);
    list-style: none;
    margin: 0;
    min-width: 180px;
    padding: 0.5rem;
    transform: translateY(0.25rem);
    z-index: 300;
    border: none;
}
ul.dropdown-submenu-open li {
    padding: 0.3125rem 0.5rem;
    border-radius: 2px;
    border: none;
}
ul.dropdown-submenu-open li:not(.no-hover):hover {
    background-color: #f1f1fc;
}
ul.dropdown-submenu-open li:not(.no-hover) .fa,
ul.dropdown-submenu-open li:not(.no-hover) a .fa {
    color: #3b4351;
}
ul.dropdown-submenu-open li:not(.no-hover):hover a,
ul.dropdown-submenu-open li:not(.no-hover):hover .fa,
ul.dropdown-submenu-open li:not(.no-hover):hover a .fa {
    color: #5755d9;
}

/* ===========================================================================
    page header
   =========================================================================== */
.page-header h2 {
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    border-bottom: 1px solid #dadee4;
}
.page-header ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 0.75rem;
}
.page-header ul li {
    display: block;
}
.page-header ul li a {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid #5755d9;
    border-radius: 2px;
    color: #5755d9;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    height: 2.25rem;
    line-height: 1.5rem;
    outline: none;
    padding: 0.3125rem 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}
.page-header ul li a:focus {
    box-shadow: 0 0 0 0.1rem rgba(87, 85, 217, 0.2);
}
.page-header ul li a:focus,
.page-header ul li a:hover {
    background: #f1f1fc;
    border-color: #4b48d6;
    text-decoration: none;
}
.page-header ul li a:active {
    background: #4b48d6;
    border-color: #3634d2;
    color: #fff;
    text-decoration: none;
}
/* ===========================================================================
    form
   =========================================================================== */
fieldset {
    padding: 0.625rem 1rem 1rem 1rem;
    margin-top: 1rem;
}
.form-columns fieldset {
    margin-top: 0;
    margin-bottom: 1rem;
}
.form-columns fieldset:last-child {
    margin-bottom: 0;
}
label {
    display: block;
    line-height: 1.5rem;
    padding: 0.375rem 0;
}
label:first-child {
    margin-top: 0;
}
input[name='hidden'] + label {
    margin-top: 0;
}
input[type='number'],
input[type='date'],
input[type='email'],
input[type='password'],
input[type='text'],
input[type='text']:not(.input-addon-field),
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    background-image: none;
    border: 1px solid #bcc3ce;
    border-radius: 2px;
    color: #3b4351;
    font-size: 1rem;
    height: 2.25rem;
    line-height: 1.5rem;
    max-width: 95%;
    outline: none;
    padding: 0.3125rem 0.5rem;
    position: relative;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s;
}

input[type='number']:focus,
input[type='date']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='text']:focus,
input[type='text']:not(.input-addon-field):focus,
textarea:focus {
    border-color: #5755d9;
    box-shadow: 0 0 0 2px rgba(87, 85, 217, 0.2);
}

input[type='number']::placeholder,
input[type='date']::placeholder,
input[type='email']::placeholder,
input[type='password']::placeholder input[type='text']::placeholder,
input[type='text']:not(.input-addon-field)::placeholder,
textarea::placeholder {
    color: #bcc3ce;
}
textarea {
    height: auto;
    min-height: 200px;
    overflow: auto;
}
textarea#form-application_stylesheet {
    width: 100%;
}

.input-addon-field:first-child {
    border-radius: 2px 0 0 2px;
}
.input-addon-item:last-child {
    border-radius: 0 2px 2px 0;
}
.form-help {
    color: #e85600;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 0.05rem solid #bcc3ce;
    border-radius: 2px;
    color: inherit;
    font-size: 1rem;
    height: 2.25rem;
    line-height: 1.5rem;
    outline: none;
    padding: 0.3125rem 0.5rem;
    vertical-align: middle;
}

select:focus {
    border-color: #5755d9;
    box-shadow: 0 0 0 2px rgba(87, 85, 217, 0.2);
}

select:not([multiple]):not([size]) {
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat right 0.4375rem center/.5rem 0.625rem;
    padding-right: 1.5rem;
}

/* ===========================================================================
    sidebar
   =========================================================================== */
.sidebar h2,
.sidebar-content > h3 {
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid #dadee4;
    padding-bottom: 0.75rem;
}
.sidebar > ul li.active {
    border-left: 3px solid #5755d9;
    background: #f1f1fc;
    padding-left: 10px;
}
.sidebar > ul li.active a,
.sidebar > ul li.active a:hover {
    color: #5755d9;
}
.sidebar > ul li:hover {
    border-left: 3px solid #5755d9;
    background: #f1f1fc;
    padding-left: 10px;
}
.sidebar > ul li:hover a {
    color: #5755d9;
}
.sidebar-icons > ul li {
    padding-left: 13px;
}

/* ===========================================================================
    table
   =========================================================================== */
table tr td,
table tr th {
    padding: 0.75rem 0.5rem;
}

/* ===========================================================================
    panel
   =========================================================================== */
.panel {
    padding: 1rem;
}
.panel li {
    list-style-type: disc;
    line-height: 1.5rem;
}

/* ===========================================================================
    table-list
   =========================================================================== */
.table-list-header {
    border: 1px solid #dadee4;
    border-radius: 2px 2px 0 0;
    padding: 0.3125rem 0.8rem;
}
.table-list-row {
    padding: 0.8rem;
    border-right: 1px solid #dadee4;
    border-bottom: 1px solid #dadee4;
}
.table-list-row.table-border-left {
    border-left: 1px solid #dadee4;
}
.table-list-row:last-child {
    border-radius: 0 0 2px 2px;
}
.table-list-row > div:first-child {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    padding-bottom: 0.3125rem;
    margin-bottom: 0.3125rem;
    border-bottom: 1px solid #f1f3f5;
}
.table-list-row .dropdown {
    margin-right: 0.5rem;
}
.table-list-row .table-list-title a {
    color: #5755d9;
    font-weight: bold;
}
.table-list-row .table-list-details strong {
    font-size: 0.8rem;
    margin-right: 2px;
}
.table-list-row .table-list-details small {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}
.table-list-row .table-list-details-with-icons {
    margin-top: 0.3125rem;
}

/* ===========================================================================
    button
   =========================================================================== */
.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid #5755d9;
    border-radius: 2px;
    color: #5755d9;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    height: 2.25rem;
    line-height: 1.5rem;
    outline: none;
    padding: 0.3125rem 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}
.btn:focus {
    box-shadow: 0 0 0 0.1rem rgba(87, 85, 217, 0.2);
}
.btn:focus,
.btn:hover {
    background: #f1f1fc;
    border-color: #4b48d6;
    text-decoration: none;
    color: #5755d9;
}
.btn:active,
.btn.active {
    background: #4b48d6;
    border-color: #3634d2;
    color: #fff;
    text-decoration: none;
}
/* btn small*/
.btn.btn-sm {
    font-size: 0.875rem;
    height: 1.5rem;
    padding: 1px 0.375rem;
}
/* btn primary */
.btn.btn-primary {
    background: #5755d9;
    border-color: #4b48d6;
    color: #fff;
}
.btn.btn-primary:focus,
.btn.btn-primary:hover {
    background: #4240d4;
    border-color: #3634d2;
    color: #fff;
}
.btn.btn-primary:active {
    background: #3a38d2;
    border-color: #302ecd;
    color: #fff;
}

/* ===========================================================================
    project header
   =========================================================================== */
.project-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}
.project-header .dropdown-component {
    margin: 0;
    float: none;
    margin-right: 0.625rem;
}
.project-header .views-switcher-component {
    margin-top: 0;
    float: none;
    margin-right: 0.625rem;
}
.views {
    display: inline-flex;
    display: -ms-inline-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    font-size: 1rem;
    margin: 0;
}
.views li {
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid #5755d9;
    border-radius: 2px;
    color: #5755d9;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    height: 2.25rem;
    line-height: 1.5rem;
    outline: none;
    padding: 0.3125rem 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}
.views li:focus {
    box-shadow: 0 0 0 0.1rem rgba(87, 85, 217, 0.2);
}
.views li:focus,
.views li:hover {
    background: #f1f1fc;
    border-color: #4b48d6;
    text-decoration: none;
}
.views li:active,
.views li.active {
    background: #4b48d6;
    border-color: #3634d2;
    color: #fff;
    text-decoration: none;
}
.views li:first-child:not(:last-child) {
    border-radius: 2px 0 0 2px;
}
.views li:not(:first-child):not(:last-child) {
    border-radius: 0;
    margin-left: -1px;
}
.views li:last-child:not(:first-child) {
    border-radius: 0 2px 2px 0;
    margin-left: -1px;
    border-right: 1px solid #5755d9;
}
.views li a {
    color: #5755d9;
}
.views li.active a,
.views li.active a .fa {
    color: #fff;
}
.views li a:hover {
    color: #5755d9;
    text-decoration: none;
}

/* ===========================================================================
    task
   =========================================================================== */
#task-summary h2 {
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid #dadee4;
    padding-bottom: 0.75rem;
}
.task-summary-container {
    border-radius: 2px;
    padding: 1rem;
}

.task-board.color-green,
.task-summary-container.color-green,
.color-picker-square.color-green,
.task-board-category.color-green,
.table-list-category.color-green,
.task-tag.color-green {
    background-color: #d7fbef;
    border-color: #00d1b2;
}
.table-list-row.color-green {
    border-left: 5px solid #00d1b2;
}
.task-board.color-yellow,
.task-summary-container.color-yellow,
.color-picker-square.color-yellow,
.task-board-category.color-yellow,
.table-list-category.color-yellow,
.task-tag.color-yellow {
    background-color: #fff2d7;
    border-color: #ffdd57;
}
.table-list-row.color-yellow {
    border-left: 5px solid #ffdd57;
}
.task-board {
    padding: 0.5rem;
    border-radius: 2px;
}
.task-form-container small {
    font-size: 1rem;
}

/* ===========================================================================
    modal
   =========================================================================== */
#modal-overlay {
    background: rgba(247, 248, 249, 0.75);
}
#modal-box {
    border-radius: 2px;
    box-shadow: 0 0.25rem 0.625rem rgba(48, 55, 66, 0.3);
    padding: 2rem 1rem;
    position: relative;
}
#modal-header {
    position: relative;
}
#modal-close-button {
    position: absolute;
    width: 20px;
    height: 20px;
    line-height: 20px;
    right: 0;
}
#modal-content {
    padding: 0 1rem;
}

/* ===========================================================================
    select2
   =========================================================================== */
span.select2-container {
    margin-top: 0;
}
.select2-container .select2-selection--single {
    height: 36px;
}
.select2-container--default .select2-selection--single {
    outline: 0;
    border: 1px solid #bcc3ce;
}
.select2-container--default .select2-selection--single[aria-expanded='true'] {
    border: 1px solid black;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: inherit;
    margin-top: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    margin-top: 4px;
}
.select2-container .select2-search--inline .select2-search__field {
    margin-top: 7px;
}
.select2-container--open .select2-dropdown--above {
    top: 1px;
}
.select2-container--open .select2-dropdown--below {
    top: -1px;
}
.select2-dropdown {
    border: 1px solid black;
}
.select2-container--bootstrap4 .select2-results__option {
    background-color: #fff;
}
.select2-container--default .select2-results__option[aria-selected='true'] {
    background-color: #f8f9fa;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5755d9;
}
.color-picker-option {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 24px;
}
.color-picker-option .color-picker-label {
    padding-bottom: 0;
    height: 24px;
}

/* ===========================================================================
    accordion section
   =========================================================================== */
.accordion-section {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
}
.accordion-section:last-child {
    margin-bottom: 0;
}
.accordion-section .accordion-title {
    margin: 0;
}
.accordion-section .accordion-content {
    margin-top: 0.5rem;
    margin-bottom: 0;
    position: relative;
}
.accordion-section .accordion-content .markdown {
    line-height: 1.5;
    padding: 0.5rem 1rem;
}
.accordion-section .accordion-content .markdown p:last-child {
    margin-bottom: 0;
}
.accordion-section .accordion-content .comment-sorting {
    position: absolute;
    right: 0;
    top: -2.25rem;
}
